import request from '@/utils/request'

// 查询列表
export function listBankCard(query) {
  return request({
    url: '/aipay/bank/list',
    method: 'get',
    params: query
  })
}

// 查询详细
export function getBankCard(id) {
  return request({
    url: '/aipay/bank/' + id,
    method: 'get'
  })
}

// 新增
export function addBankCard(data) {
  return request({
    url: '/aipay/bank',
    method: 'post',
    data: data
  })
}

// 修改
export function updateBankCard(data) {
  return request({
    url: '/aipay/bank',
    method: 'put',
    data: data
  })
}

// 删除
export function delBankCard(id) {
  return request({
    url: '/aipay/bank/' + id,
    method: 'delete'
  })
}
